
<section class="row">
  <div class="col-sm-10 col-sm-push-1">
    <form class="form form-horizontal" [formGroup]="entForm">
      <div class="one-form-header"></div>
      <div class="one-form-body">
        <div class="col-sm-4 col-lg-3">
          <ul id="ent_update_ZTree" class="ztree" style="max-height: 377px;height: 377px;"></ul>
        </div>
        <div class="col-sm-8 col-lg-7">
          <div class="form-group">
            <label for="company_update_govName" class="col-sm-3 control-label"><span style="color: red;">*</span> 行政区划:</label>
            <div class="col-sm-9">
              <input type="text" class="form-control" placeholder="行政区划名称" id="company_update_govName" required readonly formControlName="regionName" name="regionName">
              <div *ngIf="formErrors.regionName" class="has-error">
                <label class="control-label"><i class="fa fa-times-circle-o"></i>{{formErrors.regionName}} </label>
              </div>
            </div>
          </div>
          <div class="form-group">
            <label for="company_update_name" class="col-sm-3 control-label"><span style="color: red;">*</span> 企业名称:</label>
            <div class="col-sm-9">
              <input type="text" class="form-control" placeholder="企业名称" id="company_update_name" required  formControlName="name" name="name">
              <div *ngIf="formErrors.name" class="has-error">
                <label class="control-label"><i class="fa fa-times-circle-o"></i>{{formErrors.name}} </label>
              </div>
            </div>
          </div>
          <div class="form-group">
            <label for="company_update_companyCode" class="col-sm-3 control-label">组织机构代码:</label>
            <div class="col-sm-9">
              <input type="text" class="form-control" placeholder="组织机构代码" id="company_update_companyCode" formControlName="entOrganCode" name="entOrganCode">
              <div *ngIf="formErrors.entOrganCode" class="has-error">
                <label class="control-label"><i class="fa fa-times-circle-o"></i>{{formErrors.entOrganCode}} </label>
              </div>
            </div>
          </div>
          <div class="form-group">
            <label for="company_update_phone" class="col-sm-3 control-label">企业联系电话:</label>
            <div class="col-sm-9">
              <input type="text" class="form-control" placeholder="企业联系电话" id="company_update_phone" formControlName="phone" name="phone">
              <div *ngIf="formErrors.phone" class="has-error">
                <label class="control-label"><i class="fa fa-times-circle-o"></i>{{formErrors.phone}} </label>
              </div>
            </div>
          </div>
          <div class="form-group">
            <label for="company_update_online" class="col-sm-3 control-label">在线人数:</label>
            <div class="col-sm-9">
              <input type="text" class="form-control" placeholder="在线人数" id="company_update_online" formControlName="onlineNum" name="onlineNum">
              <div *ngIf="formErrors.onlineNum" class="has-error">
                <label class="control-label"><i class="fa fa-times-circle-o"></i>{{formErrors.onlineNum}} </label>
              </div>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-3 control-label">是否有效:</label>
            <div class="col-sm-9" >
              <div class="row">
                <div class="col-xs-4">
                  <input type="radio" name="isValid" id="company_update_valid" value="1" formControlName="isValid" >
                  <label for="company_update_valid">
                    有效
                  </label>
                </div>
                <div class="col-xs-4">
                  <input type="radio" name="isValid" id="company_update_invalid" value="0" checked formControlName="isValid" >
                  <label for="company_update_invalid">
                    无效
                  </label>
                </div>
              </div>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-3 control-label">是否禁用:</label>
            <div class="col-sm-9" >
              <div class="row">
                <div class="col-xs-4">
                  <input type="radio" name="isDisable" id="company_update_used" value="0" formControlName="isDisable" >
                  <label for="company_update_used">
                    启用
                  </label>
                </div>
                <div class="col-xs-4">
                  <input type="radio" name="isDisable" id="company_update_unused" value="1" formControlName="isDisable" >
                  <label for="company_update_unused">
                    禁用
                  </label>
                </div>
              </div>
            </div>
          </div>
          <div class="form-group">
            <label for="company_update_comment" class="col-sm-3 control-label">备注:</label>
            <div class="col-sm-9">
              <input type="text" class="form-control" value=" " id="company_update_comment" formControlName="remark" name="remark">
            </div>
          </div>
        </div>
      </div>
      <div class="one-form-footer">
        <div class="row">
          <div class="col-lg-10 col-lg-pull-0">
            <div class="pull-right">
              <button class="btn btn-default" type="reset" (click)="cancelEntUpdate()">取消</button>
              <button class="btn btn-success" type="button" [disabled]="entForm.invalid" (click)="onSubmit()">提交</button>
            </div>
          </div>
        </div>
      </div>
    </form>
  </div>
</section>
